//
//  JTitleBtn.swift
//  JMicroBlog
//
//  Created by Jason on 21/5/15.
//  Copyright (c) 2015 Shepherd. All rights reserved.
//

import UIKit

class JTitleBtn: UIButton {
    // 布局子视图
    override func layoutSubviews() {
        super.layoutSubviews()
        
        // 如果是未登录时 直接返回
        if titleLabel?.text == "首页" {
            return
        }
        
        JLog.i("\(titleLabel)",false)
        titleLabel!.frame = CGRectOffset(titleLabel!.frame,-imageView!.frame.width, 0)
        imageView!.frame = CGRectOffset(imageView!.frame, titleLabel!.frame.width, 0)
    }
}
